package com.wyh.service.gfive;

import com.google.protobuf.ServiceException;
import com.wyh.common.result.Result;
import com.wyh.domain.po.gfive.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 32276
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2024-05-20 09:55:57
*/
public interface SysLoginService extends IService<User> {

    String login(String account, String password);

    String loginCaptcha(String telephone, int captcha);

    User findByPhone(String phone);

    Result sendCaptcha(String phone);

    Result updatePassword(String oldPwd, String newPwd, String rePwd) throws ServiceException;

}
